

preserve
keep if MOB==0
sum(count)

graph bar, over(YOB, label(angle(45) labsize(tiny))) title("Age Heaping, 1945-1962, No MOB") note("N=168K")
graph save "${output}/graphs/heaping_unreg62.gph", replace
graph export "${output}/graphs/heaping_unreg62.png", replace

restore

preserve
keep if MOB==1
sum(count)

graph bar, over(YOB, label(angle(45) labsize(tiny))) title("Age Heaping, 1945-1962, MOB") note("N=27K")
graph save "${output}/graphs/heaping_reg62.gph", replace
graph export "${output}/graphs/heaping_reg62.png", replace

grc1leg "${output}/graphs/heaping_reg62.gph" "${output}/graphs/heaping_unreg62.gph",title("Heaping, 1945-1962") legendfrom("${output}/graphs/heaping_unreg62.gph")
graph save "${output}/graphs/Figure7A.gph", replace
graph export "${output}/graphs/Figure7A.png", replace

restore
